home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2001 May / SGI Freeware 2001 May - Disc 1.iso / dist / fw_teTeX.idb / usr / freeware / info / latex.info-1.z / latex.info-1 (.txt)
GNU Info File  |  2001-01-10  |  51KB  |  1,113 lines

  1. This is Info file latex.info, produced by Makeinfo version 1.68 from
  2. the input file latex2e.texi.
  3. INFO-DIR-SECTION TeX
  4. START-INFO-DIR-ENTRY
  5. * LaTeX2e: (latex).                  LaTeXe help 1.6.
  6. END-INFO-DIR-ENTRY
  7.    This file documents LaTeX2e, a document preparation system. LaTeX2e
  8. is a macro package for TeX.
  9.    This is edition 1.6 of the LaTeX2e documentation, and is for the
  10. Texinfo that is distributed as part of Version 19 of GNU Emacs. It uses
  11. version 2.134 or later of the texinfo.tex input file.
  12.    This is translated from LATEX.HLP v1.0a in the VMS Help Library.  The
  13. pre-translation version was written by George D. Greenwade of Sam
  14. Houston State University.
  15.    The LaTeX 2.09 version was written by Stephen Gilmore
  16. <stg@dcs.ed.ac.uk>.
  17.    The LaTeX2e version was adapted from this by Torsten Martinsen
  18. <bullestock@dk-online.dk>.
  19.    Copyright 1988,1994 Free Software Foundation, Inc.  Copyright
  20. 1994-1996 Torsten Martinsen.
  21.    Permission is granted to make and distribute verbatim copies of this
  22. manual provided the copyright notice and this permission notice are
  23. preserved on all copies.
  24.    Permission is granted to copy and distribute modified versions of
  25. this manual under the conditions for verbatim copying, provided that
  26. the entire resulting derived work is distributed under the terms of a
  27. permission notice identical to this one.
  28.    Permission is granted to copy and distribute translations of this
  29. manual into another language, under the above conditions for modified
  30. versions, except that the sections entitled "Distribution" and "General
  31. Public License" may be included in a translation approved by the author
  32. instead of in the original English.
  33. File: latex.info,  Node: Top,  Next: Overview,  Prev: (dir),  Up: (dir)
  34.    LaTeX2e is a document preparation system implemented as a macro
  35. package for Donald E. Knuth's TeX typesetting program.
  36.    LaTeX was originally conceived by Leslie Lamport.
  37.    This is edition 1.6 of the LaTeX2e documentation.
  38. * Menu:
  39. * Overview::                    What is LaTeX?
  40. * Commands::                    Commands within a LaTeX document.
  41. * Parameters::                  The command line.
  42. * Command Index::               An alphabetical list of LaTeX commands.
  43. * Concept Index::        An alphabetical list of concepts.
  44. File: latex.info,  Node: Overview,  Next: Commands,  Prev: Top,  Up: Top
  45. Overview of LaTeX and Local Guide
  46. *********************************
  47.    The LaTeX command typesets a file of text using the TeX program and
  48. the LaTeX Macro package for TeX.  To be more specific, it processes an
  49. input file containing the text of a document with interspersed commands
  50. that describe how the text should be formatted.  It produces at least
  51. three files as output:
  52.   1. A "Device Independent", or `.dvi' file. This contains commands that
  53.      can be translated into commands for a variety of output devices.
  54.      You can view the output of LaTeX by using a program such as `xdvi',
  55.      which actually uses the `.dvi' file.
  56.   2. A "transcript" or `.log' file that contains summary information and
  57.      diagnostic messages for any errors discovered in the input file.
  58.   3. An "auxiliary" or `.aux' file. This is used by LaTeX itself, for
  59.      things such as sectioning.
  60.    For a description of what goes on inside TeX, you should consult
  61. `The TeXbook' by Donald E. Knuth, ISBN 0-201-13448-9, published jointly
  62. by the American Mathematical Society and Addison-Wesley Publishing
  63. Company.
  64.    For a description of LaTeX, you should consult:
  65.    `LaTeX: A Document Preparation System', by Leslie Lamport,
  66. Addison-Wesley Publishing Company, 2nd edition, 1994.
  67.    `The LaTeX Companion', by Michel Goossens, Frank Mittelbach, and
  68. Alexander Samarin, Addison-Wesley, 1994.
  69. File: latex.info,  Node: Commands,  Next: Parameters,  Prev: Overview,  Up: Top
  70. Commands
  71. ********
  72.    A LaTeX command begins with the command name, which consists of a
  73. `\' followed by either (a) a string of letters or (b) a single
  74. non-letter.  Arguments contained in square brackets, `[]', are optional
  75. while arguments contained in braces, `{}', are required.
  76.    NOTE:  LaTeX  is case sensitive.   Enter  all commands  in lower
  77. case unless explicitly directed to do otherwise.
  78. * Menu:
  79. * Counters::            Internal counters used by LaTeX.
  80. * Cross References::        Automatic referencing.
  81. * Definitions::            Define your own commands etc.
  82. * Document Classes::        Some of the various classes available.
  83. * Environments::        Such as enumerate & itemize.
  84. * Footnotes::            How to produce footnotes.
  85. * Layout::            Controlling the page layout.
  86. * Lengths::            The length commands.
  87. * Letters::            The letter class.
  88. * Line & Page Breaking::    How to insert pagebreaks etc.
  89. * Making Paragraphs::        Paragraph commands.
  90. * Margin Notes::                Putting remarks in the margin.
  91. * Math Formulae::        How to create mathematical formulae.
  92. * Modes::            Paragraph, Math or LR modes.
  93. * Page Styles::            Various styles of page layout.
  94. * Sectioning::            How to section properly.
  95. * Spaces & Boxes::        All the associated commands.
  96. * Special Characters::        Special reserved characters.
  97. * Splitting the Input::        Dealing with big files by splitting.
  98. * Starting & Ending::        The formal start & end layouts.
  99. * Table of Contents::        How to create a table of contents.
  100. * Terminal Input/Output::    User interaction.
  101. * Typefaces::            Such as bold, italics etc.
  102. File: latex.info,  Node: Counters,  Next: Cross References,  Prev: Commands,  Up: Commands
  103. Counters
  104. ========
  105.    Everything LaTeX numbers for you has a counter associated with it.
  106. The name of the counter is the same as the name of the environment or
  107. command that produces the number, except with no `\'.  (enumi - enumiv
  108. are used for the nested enumerate environment.)  Below is a list of the
  109. counters used in LaTeX's standard document classes to control numbering.
  110.       part            paragraph       figure          enumi
  111.       chapter         subparagraph    table           enumii
  112.       section         page            footnote        enumiii
  113.       subsection      equation        mpfootnote      enumiv
  114.       subsubsection
  115. * Menu:
  116. * \addtocounter::       Add a quantity to a counter.
  117. * \alph::               Print value of a counter using letters.
  118. * \arabic::             Print value of a counter using numerals.
  119. * \fnsymbol::           Print value of a counter using symbols.
  120. * \newcounter::         Define a new counter.
  121. * \refstepcounter::     Add to counter, resetting subsidiary counters.
  122. * \roman::              Print value of a counter using roman numerals.
  123. * \setcounter::         Set the value of a counter.
  124. * \stepcounter::        Add to counter, resetting subsidiary counters.
  125. * \usecounter::         Use a specified counter in a list environment.
  126. * \value::              Use the value of a counter in an expression.
  127. File: latex.info,  Node: \addtocounter,  Next: \alph,  Prev: Counters,  Up: Counters
  128. \addtocounter
  129. -------------
  130.    `\addtocounter{counter}{value}'
  131.    The `\addtocounter' command increments the `counter' by the amount
  132. specified by the `value' argument.  The `value' argument can be
  133. negative.
  134. File: latex.info,  Node: \alph,  Next: \arabic,  Prev: \addtocounter,  Up: Counters
  135. \alph
  136. -----
  137.    `\alph{counter}'
  138.    This command causes the value of the `counter' to be printed in
  139. alphabetic characters.  The `\alph' command uses lower case alphabetic
  140. alphabetic characters, i.e., `a, b, c...' while the `\Alph' command
  141. uses upper case alphabetic characters, i.e., `A, B, C...'.
  142. File: latex.info,  Node: \arabic,  Next: \fnsymbol,  Prev: \alph,  Up: Counters
  143. \arabic
  144. -------
  145.    `\arabic{counter}'
  146.    The `\arabic' command causes the value of the `counter' to be
  147. printed in Arabic numbers, i.e., `3'.
  148. File: latex.info,  Node: \fnsymbol,  Next: \newcounter,  Prev: \arabic,  Up: Counters
  149. \fnsymbol
  150. ---------
  151.    `\fnsymbol{counter}'
  152.    The `\fnsymbol' command causes the value of the `counter' to be
  153. printed in a specific sequence of nine symbols that can be used for
  154. numbering footnotes.
  155.    NB. `counter' must have a value between 1 and 9 inclusive.
  156. File: latex.info,  Node: \newcounter,  Next: \refstepcounter,  Prev: \fnsymbol,  Up: Counters
  157. \newcounter
  158. -----------
  159.    `\newcounter{foo}[counter]'
  160.    The `\newcounter' command defines a new counter named `foo'.  The
  161. counter is initialized to zero.
  162.    The optional argument `[counter]' causes the counter `foo' to be
  163. reset whenever the counter named in the optional argument is
  164. incremented.
  165. File: latex.info,  Node: \refstepcounter,  Next: \roman,  Prev: \newcounter,  Up: Counters
  166. \refstepcounter
  167. ---------------
  168.    `\refstepcounter{counter}'
  169.    The `\refstepcounter' command works like  `\stepcounter' *Note
  170. \stepcounter::, except it also defines the current `\ref' value to be
  171. the result of `\thecounter'.
  172. File: latex.info,  Node: \roman,  Next: \stepcounter,  Prev: \refstepcounter,  Up: Counters
  173. \roman
  174. ------
  175.    `\roman{counter}'
  176.    This command causes the value of the `counter' to be printed in
  177. Roman numerals.  The `\roman' command uses lower case Roman numerals,
  178. i.e., `i, ii, iii...', while the `\Roman' command uses upper case Roman
  179. numerals, i.e., `I, II, III...'.
  180. File: latex.info,  Node: \stepcounter,  Next: \setcounter,  Prev: \roman,  Up: Counters
  181. \stepcounter
  182. ------------
  183.    `\stepcounter{counter}'
  184.    The `\stepcounter' command adds one to the `counter' and resets all
  185. subsidiary counters.
  186. File: latex.info,  Node: \setcounter,  Next: \usecounter,  Prev: \stepcounter,  Up: Counters
  187. \setcounter
  188. -----------
  189.    `\setcounter{counter}{value}'
  190.    The `\setcounter' command sets the value of the `counter' to that
  191. specified by the `value' argument.
  192. File: latex.info,  Node: \usecounter,  Next: \value,  Prev: \setcounter,  Up: Counters
  193. \usecounter
  194. -----------
  195.    `\usecounter{counter}'
  196.    The `\usecounter' command is used in the second argument of the
  197. `list' environment to allow the counter specified to be used to number
  198. the list items.
  199. File: latex.info,  Node: \value,  Prev: \usecounter,  Up: Counters
  200. \value
  201. ------
  202.    `\value{counter}'
  203.    The `\value' command produces the value of the `counter' named in
  204. the mandatory argument.  It can be used where LaTeX expects an integer
  205. or number, such as the second argument of a `\setcounter' or
  206. `\addtocounter' command, or in:
  207.              \hspace{\value{foo}\parindent}
  208.    It is useful for doing arithmetic with counters.
  209. File: latex.info,  Node: Cross References,  Next: Definitions,  Prev: Counters,  Up: Commands
  210. Cross References
  211. ================
  212.    One reason for numbering things like figures and equations is to
  213. refer the reader to them, as in "See Figure 3 for more details."
  214. * Menu:
  215. * \label::      Assign a symbolic name to a piece of text.
  216. * \pageref::    Refer to a page number.
  217. * \ref::        Refer to a section, figure or similar.
  218. File: latex.info,  Node: \label,  Next: \pageref,  Prev: Cross References,  Up: Cross References
  219. \label
  220. ------
  221.    `\label{key}'
  222.    A `\label' command appearing in ordinary text assigns to the `key'
  223. the number of the current sectional unit; one appearing inside a
  224. numbered environment assigns that number to the `key'.
  225.    A `key' can consist of any sequence of letters, digits, or
  226. punctuation characters.  Upper and lowercase letters are different.
  227.    To avoid accidentally creating two labels with the same name, it is
  228. common to use labels consisting of a prefix and a suffix separated by a
  229. colon. The prefixes conventionally used are
  230.    * `cha' for chapters
  231.    * `sec' for lower-level sectioning commands
  232.    * `fig' for figures
  233.    * `tab' for tables
  234.    * `eq' for equations
  235.    Thus, a label for a figure would look like `fig:bandersnatch'.
  236. File: latex.info,  Node: \pageref,  Next: \ref,  Prev: \label,  Up: Cross References
  237. \pageref
  238. --------
  239.    `\pageref{key}'
  240.    The `\pageref' command produces the page number of the place in the
  241. text where the corresponding `\label' command appears. ie. where
  242. `\label{key}' appears.
  243. File: latex.info,  Node: \ref,  Prev: \pageref,  Up: Cross References
  244.    `\ref{key}'
  245.    The `\ref' command produces the number of the sectional unit,
  246. equation number, ... of the corresponding `\label' command.
  247. File: latex.info,  Node: Definitions,  Next: Document Classes,  Prev: Cross References,  Up: Commands
  248. Definitions
  249. ===========
  250. * Menu:
  251. * \newcommand::         Define a new command.
  252. * \newenvironment::     Define a new environment.
  253. * \newtheorem::         Define a new theorem-like environment.
  254. * \newfont::            Define a new font name.
  255. File: latex.info,  Node: \newcommand,  Next: \newenvironment,  Prev: Definitions,  Up: Definitions
  256. \newcommand
  257. -----------
  258.       \newcommand{cmd}[args]{definition}
  259.       \newcommand{cmd}[args][default]{definition}
  260.       \renewcommand{cmd}[args]{definition}
  261.       \renewcommand{cmd}[args][default]{definition}
  262.    These commands define (or redefine) a command.
  263. `cmd'
  264.      A command name beginning with a `\'.  For `\newcommand' it must
  265.      not be already defined and must not begin with `\end'; for
  266.      `\renewcommand' it must already be defined.
  267. `args'
  268.      An integer from 1 to 9 denoting the number of arguments of the
  269.      command being defined.  The default is for the command to have no
  270.      arguments.
  271. `def'
  272.      If this optional parameter is present, it means that the command's
  273.      first argument is optional. The default value of the optional
  274.      argument is `def'.
  275. `definition'
  276.      The text to be substituted for every occurrence of `cmd'; a
  277.      parameter of the form `#n' in `cmd' is replaced by the text of the
  278.      nth argument when this substitution takes place.
  279. File: latex.info,  Node: \newenvironment,  Next: \newtheorem,  Prev: \newcommand,  Up: Definitions
  280. \newenvironment
  281. ---------------
  282.       \newenvironment{nam}[args]{begdef}{enddef}
  283.       \newenvironment{nam}[args][default]{begdef}{enddef}
  284.       \renewenvironment{nam}[args]{begdef}{enddef}
  285.    These commands define or redefine an environment.
  286. `nam'
  287.      The name of the environment.  For `\newenvironment' there must be
  288.      no currently defined environment by that name, and the command
  289.      `\nam' must be undefined.  For `\renewenvironment' the environment
  290.      must already be defined.
  291. `args'
  292.      An integer from 1 to 9 denoting the number of arguments of the
  293.      newly-defined environment.  The default is no arguments.
  294. `default'
  295.      If this is specified, the first argument is optional, and `default'
  296.      gives the default value for that argument.
  297. `begdef'
  298.      The text substituted for every occurrence of `\begin{nam}'; a
  299.      parameter of the form `#n' in `cmd' is replaced by the text of the
  300.      nth argument when this substitution takes place.
  301. `enddef'
  302.      The text substituted for every occurrence of `\end{nam}'.  It may
  303.      not contain any argument parameters.
  304. File: latex.info,  Node: \newtheorem,  Next: \newfont,  Prev: \newenvironment,  Up: Definitions
  305. \newtheorem
  306. -----------
  307.       \newtheorem{env_name}{caption}[within]
  308.       \newtheorem{env_name}[numbered_like]{caption}
  309.    This command defines a theorem-like environment.
  310. `env_name'
  311.      The name of the environment to be defined. A string of letters.
  312.      It must not be the name of an existing environment or counter.
  313. `caption'
  314.      The text printed at the beginning of the environment, right before
  315.      the number. This may simply say "Theorem", for example.
  316. `within'
  317.      The name of an already defined counter, usually of a sectional
  318.      unit.  Provides a means of resetting the new theorem counter
  319.      *within* the sectional unit.
  320. `numbered_like'
  321.      The name of an already defined theorem-like environment.
  322.    The `\newtheorem' command may have at most one optional argument.
  323. File: latex.info,  Node: \newfont,  Prev: \newtheorem,  Up: Definitions
  324. \newfont
  325. --------
  326.    `\newfont{cmd}{font_name}'
  327.    Defines the command name `cmd', which must not be currently defined,
  328. to be a declaration that selects the font named `font_name' to be the
  329. current font.
  330. File: latex.info,  Node: Document Classes,  Next: Environments,  Prev: Definitions,  Up: Commands
  331. Document Classes
  332. ================
  333.    Valid LaTeX document classes include:
  334.    * article
  335.    * report
  336.    * letter
  337.    * book
  338.    * slides
  339.    Other document classes are often available. *Note Overview::, for
  340. details.  They are selected with the following command:
  341.    `\documentclass [options] {class}'
  342.    All the standard classes (except slides) accept the following options
  343. for selecting the typeface size (10 pt is default):
  344.    10pt, 11pt, 12pt
  345.    All classes accept these options for selecting the paper size
  346. (default is letter):
  347.    a4paper, a5paper, b5paper, letterpaper, legalpaper, executivepaper
  348.    Miscellaneous options:
  349.    * landscape -- selects landscape format. Default is portrait.
  350.    * titlepage, notitlepage -- selects if there should be a separate
  351.      title page.
  352.    * leqno -- equation number on left side of equations. Default is
  353.      right side.
  354.    * fleqn -- displayed formulas flush left. Default is centred.
  355.    * openbib -- use "open" bibliography format.
  356.    * draft, final -- mark/do not mark overfull boxes with a rule.
  357.      Default is final.
  358.    These options are not available with the slides class:
  359.    * oneside, twoside -- selects one- or twosided layout. Default is
  360.      oneside, except for the book class.
  361.    * openright, openany -- determines if a chapter should start on a
  362.      right-hand page. Default is openright for book.
  363.    * onecolumn, twocolumn -- one or two columns. Defaults to one column.
  364.    The slides class offers the option `clock' for printing the time at
  365. the bottom of each note.
  366.    If you specify more than one option, they must be separated by a
  367. comma.
  368.    Additional packages are loaded by a
  369.    `\usepackage[options]{pkg}'
  370.    command. If you specify more than one package, they must be
  371. separated by a comma.
  372.    Any options given in the `\documentclass' command that are unknown
  373. by the selected document class are passed on to the packages loaded with
  374. `\usepackage'.
  375. File: latex.info,  Node: Layout,  Next: Lengths,  Prev: Footnotes,  Up: Commands
  376. Layout
  377. ======
  378.    Miscellaneous commands for controlling the general layout of the
  379. page.
  380. * Menu:
  381. * \flushbottom::        Make all text pages the same height.
  382. * \onecolumn::          Use one-column layout.
  383. * \raggedbottom::       Allow text pages of differing height.
  384. * \twocolumn::          Use two-column layout.
  385. File: latex.info,  Node: \flushbottom,  Next: \onecolumn,  Up: Layout
  386. \flushbottom
  387. ------------
  388.    The `\flushbottom' declaration makes all text pages the same height,
  389. adding extra vertical space when necessary to fill out the page.
  390.    This is the standard if twocolumn mode is selected.
  391. File: latex.info,  Node: \onecolumn,  Next: \raggedbottom,  Prev: \flushbottom,  Up: Layout
  392. \onecolumn
  393. ----------
  394.    The `\onecolumn' declaration starts a new page and produces
  395. single-column output.
  396. File: latex.info,  Node: \raggedbottom,  Next: \twocolumn,  Prev: \onecolumn,  Up: Layout
  397. \raggedbottom
  398. -------------
  399.    The `\raggedbottom' declaration makes all pages the height of the
  400. text on that page.  No extra vertical space is added.
  401. File: latex.info,  Node: \twocolumn,  Prev: \raggedbottom,  Up: Layout
  402. \twocolumn
  403. ----------
  404.    `\twocolumn[text]'
  405.    The `\twocolumn' declaration starts a new page and produces
  406. two-column output. If the optional `text' argument is present, it is
  407. typeset in one-column mode.
  408. File: latex.info,  Node: Environments,  Next: Footnotes,  Prev: Document Classes,  Up: Commands
  409. Environments
  410. ============
  411.    LaTeX provides a number of different paragraph-making environments.
  412. Each environment begins and ends in the same manner.
  413.              \begin{environment-name}
  414.              .
  415.              .
  416.              .
  417.              \end{environment-name}
  418. * Menu:
  419. * array::       Math arrays.
  420. * center::      Centred lines.
  421. * description:: Labelled lists.
  422. * enumerate::   Numbered lists.
  423. * eqnarray::    Sequences of aligned equations.
  424. * equation::    Displayed equation.
  425. * figure::      Floating figures.
  426. * flushleft::   Flushed left lines.
  427. * flushright::  Flushed right lines.
  428. * itemize::     Bulleted lists.
  429. * letter::      Letters.
  430. * list::        Generic list environment.
  431. * minipage::    Miniature page.
  432. * picture::     Picture with text, arrows, lines and circles.
  433. * quotation::   Indented environment with paragraph indentation.
  434. * quote::       Indented environment with no paragraph indentation.
  435. * tabbing::     Align text arbitrarily.
  436. * table::       Floating tables.
  437. * tabular::     Align text in columns.
  438. * thebibliography::     Bibliography or reference list.
  439. * theorem::     Theorems, lemmas, etc.
  440. * titlepage::   For hand crafted title pages.
  441. * verbatim::    Simulating typed input.
  442. * verse::       For poetry and other things.
  443. File: latex.info,  Node: array,  Next: center,  Prev: Environments,  Up: Environments
  444. array
  445. -----
  446.      \begin{array}{col1col2...coln}
  447.      column 1 entry & column 2 entry ... & column n entry \\
  448.       .
  449.       .
  450.       .
  451.      \end{array}
  452.    Math arrays are produced with the array environment.  It has a single
  453. mandatory argument describing the number of columns and the alignment
  454. within them.  Each column, `coln', is specified by a single letter that
  455. tells how items in that row should be formatted.
  456.    * `c' -- for centred
  457.    * `l' -- for flush left
  458.    * `r' -- for flush right
  459.    Column entries must be separated by an `&'.  Column entries may
  460. include other LaTeX commands.  Each row of the array must be terminated
  461. with the string `\\'.
  462.    Note that the `array' environment can only be used in math mode, so
  463. normally it is used inside an `equation' environment.
  464. File: latex.info,  Node: center,  Next: description,  Prev: array,  Up: Environments
  465. center
  466. ------
  467.       \begin{center}
  468.       Text on line 1 \\
  469.       Text on line 2 \\
  470.       .
  471.       .
  472.       .
  473.       \end{center}
  474.    The `center' environment allows you to create a paragraph consisting
  475. of lines that are centred within the left and right margins on the
  476. current page.  Each line must be terminated with the string `\\'.
  477. * Menu:
  478. * \centering::          The declaration form of the `center' environment.
  479. File: latex.info,  Node: \centering,  Up: center
  480. \centering
  481. ..........
  482.    This declaration corresponds to the `center' environment.  This
  483. declaration can be used inside an environment such as `quote' or in a
  484. `parbox'.  The text of a figure or table can be centred on the page by
  485. putting a `\centering' command at the beginning of the figure or table
  486. environment.
  487.    Unlike the `center' environment, the `\centering' command does not
  488. start a new paragraph; it simply changes how LaTeX formats paragraph
  489. units.  To affect a paragraph unit's format, the scope of the
  490. declaration must contain the blank line or `\end' command (of an
  491. environment like quote) that ends the paragraph unit.
  492. File: latex.info,  Node: description,  Next: enumerate,  Prev: center,  Up: Environments
  493. description
  494. -----------
  495.       \begin{description}
  496.       \item [label] First item
  497.       \item [label] Second item
  498.       .
  499.       .
  500.       .
  501.       \end{description}
  502.    The `description' environment is used to make labelled lists.  The
  503. `label' is bold face and flushed right.
  504. File: latex.info,  Node: enumerate,  Next: eqnarray,  Prev: description,  Up: Environments
  505. enumerate
  506. ---------
  507.       \begin{enumerate}
  508.       \item First item
  509.       \item Second item
  510.       .
  511.       .
  512.       .
  513.       \end{enumerate}
  514.    The `enumerate' environment produces a numbered list.  Enumerations
  515. can be nested within one another, up to four levels deep.  They can also
  516. be nested within other paragraph-making environments.
  517.    Each item of an enumerated list begins with an `\item' command.
  518. There must be at least one `\item' command within the environment.
  519.    The `enumerate' environment uses the `enumi' through `enumiv'
  520. counters (*note Counters::.). The type of numbering can be changed by
  521. redefining `\theenumi' etc.
  522. File: latex.info,  Node: eqnarray,  Next: equation,  Prev: enumerate,  Up: Environments
  523. eqnarray
  524. --------
  525.       \begin{eqnarray}
  526.       math formula 1 \\
  527.       math formula 2 \\
  528.       .
  529.       .
  530.       .
  531.       \end{eqnarray}
  532.    The `eqnarray' environment is used to display a sequence of
  533. equations or inequalities.  It is very much like a three-column `array'
  534. environment, with consecutive rows separated by `\\' and consecutive
  535. items within a row separated by an `&'.
  536.    An equation number is placed on every line unless that line has a
  537. `\nonumber' command.
  538.    The command `\lefteqn' is used for splitting long formulas across
  539. lines. It typesets its argument in display style flush left in a box of
  540. zero width.
  541. File: latex.info,  Node: equation,  Next: figure,  Prev: eqnarray,  Up: Environments
  542. equation
  543. --------
  544.       \begin{equation}
  545.        math formula
  546.       \end{equation}
  547.    The `equation' environment centres your equation on the page and
  548. places the equation number in the right margin.
  549. File: latex.info,  Node: figure,  Next: flushleft,  Prev: equation,  Up: Environments
  550. figure
  551. ------
  552.       \begin{figure}[placement]
  553.      
  554.        body of the figure
  555.      
  556.       \caption{figure title}
  557.       \end{figure}
  558.    Figures are objects that are not part of the normal text, and are
  559. usually "floated" to a convenient place, like the top of a page.
  560. Figures will not be split between two pages.
  561.    The optional argument `[placement]' determines where LaTeX will try
  562. to place your figure.  There are four places where LaTeX can possibly
  563. put a float:
  564.   1. `h' (Here) - at the position in the text where the figure
  565.      environment appears.
  566.   2. `t' (Top) - at the top of a text page.
  567.   3. `b' (Bottom) - at the bottom of a text page.
  568.   4. `p' (Page of floats) - on a separate float page, which is a page
  569.      containing no text, only floats.
  570.    The standard report and article classes use the default placement
  571. `tbp'.
  572.    The body of the figure is made up of whatever text, LaTeX commands,
  573. etc.  you wish.  The `\caption' command allows you to title your figure.
  574. File: latex.info,  Node: flushleft,  Next: flushright,  Prev: figure,  Up: Environments
  575. flushleft
  576. ---------
  577.       \begin{flushleft}
  578.       Text on line 1 \\
  579.       Text on line 2 \\
  580.       .
  581.       .
  582.       .
  583.       \end{flushleft}
  584.    The `flushleft' environment allows you to create a paragraph
  585. consisting of lines that are flushed left, to the left-hand margin.
  586. Each line must be terminated with the string `\\'.
  587. * Menu:
  588. * \raggedright::        The declaration form of the `flushleft' environment.
  589. File: latex.info,  Node: \raggedright,  Up: flushleft
  590. \raggedright
  591. ............
  592.    This declaration corresponds to the `flushleft' environment.  This
  593. declaration can be used inside an environment such as `quote' or in a
  594. `parbox'.
  595.    Unlike the `flushleft' environment, the `\raggedright' command does
  596. not start a new paragraph; it simply changes how LaTeX formats
  597. paragraph units.  To affect a paragraph unit's format, the scope of the
  598. declaration must contain the blank line or `\end' command (of an
  599. environment like quote) that ends the paragraph unit.
  600. File: latex.info,  Node: flushright,  Next: itemize,  Prev: flushleft,  Up: Environments
  601. flushright
  602. ----------
  603.       \begin{flushright}
  604.       Text on line 1 \\
  605.       Text on line 2 \\
  606.       .
  607.       .
  608.       .
  609.       \end{flushright}
  610.    The `flushright' environment allows you to create a paragraph
  611. consisting of lines that are flushed right, to the right-hand margin.
  612. Each line must be terminated with the string `\\'.
  613. * Menu:
  614. * \raggedleft:: The declaration form of the `flushright' environment.
  615. File: latex.info,  Node: \raggedleft,  Up: flushright
  616. \raggedleft
  617. ...........
  618.    This declaration corresponds to the `flushright' environment.  This
  619. declaration can be used inside an environment such as `quote' or in a
  620. `parbox'.
  621.    Unlike the `flushright' environment, the `\raggedleft' command does
  622. not start a new paragraph; it simply changes how LaTeX formats
  623. paragraph units.  To affect a paragraph unit's format, the scope of the
  624. declaration must contain the blank line or `\end' command (of an
  625. environment like quote) that ends the paragraph unit.
  626. File: latex.info,  Node: itemize,  Next: letter,  Prev: flushright,  Up: Environments
  627. itemize
  628. -------
  629.       \begin{itemize}
  630.       \item First item
  631.       \item Second item
  632.       .
  633.       .
  634.       .
  635.       \end{itemize}
  636.    The `itemize' environment produces a "bulleted" list.  Itemizations
  637. can be nested within one another, up to four levels deep.  They can also
  638. be nested within other paragraph-making environments.
  639.    Each item of an `itemized' list begins with an `\item' command.
  640. There must be at least one `\item' command within the environment.
  641.    The `itemize' environment uses the `itemi' through `itemiv' counters
  642. (*note Counters::.). The type of numbering can be changed by redefining
  643. `\theitemi' etc.
  644. File: latex.info,  Node: letter,  Next: list,  Prev: itemize,  Up: Environments
  645. letter
  646. ------
  647.    This environment is used for creating letters. *Note Letters::.
  648. File: latex.info,  Node: list,  Next: minipage,  Prev: letter,  Up: Environments
  649.    The `list' environment is a generic environment which is used for
  650. defining many of the more specific environments. It is seldom used in
  651. documents, but often in macros.
  652.       \begin{list}{label}{spacing}
  653.       \item First item
  654.       \item Second item
  655.       .
  656.       .
  657.       .
  658.       \end{list}
  659.    The `{label}' argument specifies how items should be labelled.  This
  660. argument is a piece of text that is inserted in a box to form the
  661. label.  This argument can and usually does contain other LaTeX commands.
  662.    The `{spacing}' argument contains commands to change the spacing
  663. parameters for the list.  This argument will most often be null, i.e.,
  664. `{}'.  This will select all default spacing which should suffice for
  665. most cases.
  666. File: latex.info,  Node: minipage,  Next: picture,  Prev: list,  Up: Environments
  667. minipage
  668. --------
  669.       \begin{minipage}[position]{width}
  670.        text
  671.       \end{minipage}
  672.    The `minipage' environment is similar to a `\parbox' command.  It
  673. takes the same optional `position' argument and mandatory `width'
  674. argument.  You may use other paragraph-making environments inside a
  675. minipage.
  676.    Footnotes in a `minipage' environment are handled in a way that is
  677. particularly useful for putting footnotes in figures or tables.  A
  678. `\footnote' or `\footnotetext' command puts the footnote at the bottom
  679. of the minipage instead of at the bottom of the page, and it uses the
  680. `mpfootnote' counter instead of the ordinary `footnote' counter *Note
  681. Counters::.
  682.    NOTE: Don't put one minipage inside another if you are using
  683. footnotes; they may wind up at the bottom of the wrong minipage.
  684. File: latex.info,  Node: picture,  Next: quotation,  Prev: minipage,  Up: Environments
  685. picture
  686. -------
  687.       \begin{picture}(width,height)(x offset,y offset)
  688.        .
  689.        .
  690.        picture commands
  691.        .
  692.        .
  693.       \end{picture}
  694.    The `picture' environment allows you to create just about any kind
  695. of picture you want containing text, lines, arrows and circles.  You
  696. tell LaTeX where to put things in the picture by specifying their
  697. coordinates.  A coordinate is a number that may have a decimal point and
  698. a minus sign -- a number like `5', `2.3' or `-3.1416'.  A coordinate
  699. specifies a length in multiples of the unit length `\unitlength', so if
  700. `\unitlength' has been set to `1cm', then the coordinate 2.54 specifies
  701. a length of 2.54 centimetres.  You can change the value of
  702. `\unitlength' anywhere you want, using the `\setlength' command, but
  703. strange things will happen if you try changing it inside the picture
  704. environment.
  705.    A position is a pair of coordinates, such as `(2.4,-5)', specifying
  706. the point with x-coordinate `2.4' and y-coordinate `-5'.  Coordinates
  707. are specified in the usual way with respect to an origin, which is
  708. normally at the lower-left corner of the picture.  Note that when a
  709. position appears as an argument, it is not enclosed in braces; the
  710. parentheses serve to delimit the argument.
  711.    The `picture' environment has one mandatory argument, which is a
  712. `position'.  It specifies the size of the picture.  The environment
  713. produces a rectangular box with width and height determined by this
  714. argument's x- and y-coordinates.
  715.    The `picture' environment also has an optional `position' argument,
  716. following the `size' argument, that can change the origin.  (Unlike
  717. ordinary optional arguments, this argument is not contained in square
  718. brackets.) The optional argument gives the coordinates of the point at
  719. the lower-left corner of the picture (thereby determining the origin).
  720. For example, if `\unitlength' has been set to `1mm', the command
  721.         \begin{picture}(100,200)(10,20)
  722.    produces a picture of width 100 millimetres and height 200
  723. millimetres, whose lower-left corner is the point (10,20) and whose
  724. upper-right corner is therefore the point (110,220).  When you first
  725. draw a picture, you will omit the optional argument, leaving the origin
  726. at the lower-left corner.  If you then want to modify your picture by
  727. shifting everything, you just add the appropriate optional argument.
  728.    The environment's mandatory argument determines the nominal size of
  729. the picture.  This need bear no relation to how large the picture
  730. really is; LaTeX will happily allow you to put things outside the
  731. picture, or even off the page.  The picture's nominal size is used by
  732. LaTeX in determining how much room to leave for it.
  733.    Everything that appears in a picture is drawn by the `\put' command.
  734. The command
  735.         \put (11.3,-.3){...}
  736.    puts the object specified by `...' in the picture, with its
  737. reference point at coordinates (11.3,-.3).  The reference points for
  738. various objects will be described below.
  739.    The `\put' command creates an "LR box".  You can put anything in the
  740. text argument of the `\put' command that you'd put into the argument of
  741. an `\mbox' and related commands.  When you do this, the reference point
  742. will be the lower left corner of the box.
  743.    Picture commands:
  744. * Menu:
  745. * \circle::             Draw a circle.
  746. * \dashbox::            Draw a dashed box.
  747. * \frame::              Draw a frame around an object.
  748. * \framebox (picture):: Draw a box with a frame around it.
  749. * \line::               Draw a straight line.
  750. * \linethickness::      Set the line thickness.
  751. * \makebox (picture)::  Draw a box of the specified size.
  752. * \multiput::           Draw multiple instances of an object.
  753. * \oval::               Draw an ellipse.
  754. * \put::                Place an object at a specified place.
  755. * \shortstack::         Make a pile of objects.
  756. * \vector::             Draw a line with an arrow.
  757. File: latex.info,  Node: \circle,  Next: \dashbox,  Up: picture
  758. \circle
  759. .......
  760.    `\circle[*]{diameter}'
  761.    The `\circle' command produces a circle with a diameter as close to
  762. the specified one as possible.  If the `*'-form of the command is used,
  763. LaTeX draws a solid circle.
  764.    Note that only circles up to 40 pt can be drawn.
  765. File: latex.info,  Node: \dashbox,  Next: \frame,  Prev: \circle,  Up: picture
  766. \dashbox
  767. ........
  768.    Draws a box with a dashed line.
  769.    `\dashbox{dash_length}(width,height){...}'
  770.    The `\dashbox' has an extra argument which specifies the width of
  771. each dash.  A dashed box looks best when the `width' and `height' are
  772. multiples of the `dash_length'.
  773. File: latex.info,  Node: \frame,  Next: \framebox (picture),  Prev: \dashbox,  Up: picture
  774. \frame
  775. ......
  776.    `\frame{...}'
  777.    The `\frame' command puts a rectangular frame around the object
  778. specified in the argument.  The reference point is the bottom left
  779. corner of the frame.  No extra space is put between the frame and the
  780. object.
  781. File: latex.info,  Node: \framebox (picture),  Next: \line,  Prev: \frame,  Up: picture
  782. \framebox
  783. .........
  784.    `\framebox(width,height)[position]{...}'
  785.    The `\framebox' command is exactly the same as the `\makebox'
  786. command, except that it puts a frame around the outside of the box that
  787. it creates.
  788.    The `framebox' command produces a rule of thickness `\fboxrule', and
  789. leaves a space `\fboxsep' between the rule and the contents of the box.
  790. File: latex.info,  Node: \line,  Next: \linethickness,  Prev: \framebox (picture),  Up: picture
  791. \line
  792. .....
  793.    `\line(x slope,y slope){length}'
  794.    The `\line' command draws a line of the specified `length' and
  795. `slope'.
  796.    Note that LaTeX can only draw lines with slope = x/y, where x and y
  797. have integer values from -6 through 6.
  798. File: latex.info,  Node: \linethickness,  Next: \makebox (picture),  Prev: \line,  Up: picture
  799. \linethickness
  800. ..............
  801.    `\linethickness{dimension}'
  802.    Declares the thickness of horizontal and vertical lines in a picture
  803. environment to be `dimension', which must be a positive length. It does
  804. not affect the thickness of slanted lines and circles, or the quarter
  805. circles drawn by `\oval' to form the corners of an oval.
  806. File: latex.info,  Node: \makebox (picture),  Next: \multiput,  Prev: \linethickness,  Up: picture
  807. \makebox
  808. ........
  809.    `\makebox(width,height)[position]{...}'
  810.    The `\makebox' command for the picture environment is similar to the
  811. normal `\makebox' command except that you must specify a `width' and
  812. `height' in multiples of `\unitlength'.
  813.    The optional argument, `[position]', specifies the quadrant that
  814. your text appears in.  You may select up to two of the following:
  815.    * `t' - Moves the item to the top of the rectangle
  816.    * `b' - Moves the item to the bottom
  817.    * `l' - Moves the item to the left
  818.    * `r' - Moves the item to the right
  819.    *Note \makebox::.
  820. File: latex.info,  Node: \multiput,  Next: \oval,  Prev: \makebox (picture),  Up: picture
  821. \multiput
  822. .........
  823.    `\multiput(x coord,y coord)(delta x,delta y){number of
  824. copies}{object}'
  825.    The `\multiput' command can be used when you are putting the same
  826. object in a regular pattern across a picture.
  827. File: latex.info,  Node: \oval,  Next: \put,  Prev: \multiput,  Up: picture
  828. \oval
  829. .....
  830.    `\oval(width,height)[portion]'
  831.    The `\oval' command produces a rectangle with rounded corners.  The
  832. optional argument, `[portion]', allows you to select part of the oval.
  833.    * `t' - Selects the top portion
  834.    * `b' - Selects the bottom portion
  835.    * `r' - Selects the right portion
  836.    * `l' - Selects the left portion
  837.    Note that the "corners" of the oval are made with quarter circles
  838. with a maximum radius of 20 pt, so large "ovals" will look more like
  839. boxes with rounded corners.
  840. File: latex.info,  Node: \put,  Next: \shortstack,  Prev: \oval,  Up: picture
  841.    `\put(x coord,y coord){ ...  }'
  842.    The `\put' command places the item specified by the mandatory
  843. argument at the given coordinates.
  844. File: latex.info,  Node: \shortstack,  Next: \vector,  Prev: \put,  Up: picture
  845. \shortstack
  846. ...........
  847.    `\shortstack[position]{...  \\ ...  \\ ...}'
  848.    The `\shortstack' command produces a stack of objects.  The valid
  849. positions are:
  850.    * `r' - Moves the objects to the right of the stack
  851.    * `l' - Moves the objects to the left of the stack
  852.    * `c' - Moves the objects to the centre of the stack (default)
  853. File: latex.info,  Node: \vector,  Prev: \shortstack,  Up: picture
  854. \vector
  855. .......
  856.    `\vector(x slope,y slope){length}'
  857.    The `\vector' command draws a line with an arrow of the specified
  858. length and slope.  The `x' and `y' values must lie between -4 and +4,
  859. inclusive.
  860. File: latex.info,  Node: quotation,  Next: quote,  Prev: picture,  Up: Environments
  861. quotation
  862. ---------
  863.       \begin{quotation}
  864.        text
  865.       \end{quotation}
  866.    The margins of the `quotation' environment are indented on the left
  867. and the right.  The text is justified at both margins and there is
  868. paragraph indentation.  Leaving a blank line between text produces a new
  869. paragraph.
  870. File: latex.info,  Node: quote,  Next: tabbing,  Prev: quotation,  Up: Environments
  871. quote
  872. -----
  873.       \begin{quote}
  874.        text
  875.       \end{quote}
  876.    The margins of the `quote' environment are indented on the left and
  877. the right.  The text is justified at both margins.  Leaving a blank line
  878. between text produces a new paragraph.
  879. File: latex.info,  Node: tabbing,  Next: table,  Prev: quote,  Up: Environments
  880. tabbing
  881. -------
  882.       \begin{tabbing}
  883.       text \= more text \= still more text \= last text \\
  884.       second row \>  \> more \\
  885.       .
  886.       .
  887.       .
  888.       \end{tabbing}
  889.    The `tabbing' environment provides a way to align text in columns.
  890. It works by setting tab stops and tabbing to them much the way you do
  891. with an ordinary typewriter.
  892.    It is best suited for cases where the width of each column is
  893. constant and known in advance.
  894.    This environment can be broken across pages, unlike the `tabular'
  895. environment.
  896.    The following commands can be used inside a `tabbing' enviroment:
  897.      Sets a tab stop at the current position.
  898.      Advances to the next tab stop.
  899.      This command allows you to put something to the left of the local
  900.      margin without changing the margin.  Can only be used at the start
  901.      of the line.
  902.      Moves the left margin of the next and all the following commands
  903.      one tab stop to the right.
  904.      Moves the left margin of the next and all the following commands
  905.      one tab stop to the left.
  906.      Moves everything that you have typed so far in the current column,
  907.      i.e. everything from the most recent `\>', `\<', `\'', `\\', or
  908.      `\kill' command, to the right of the previous column, flush
  909.      against the current column's tab stop.
  910.      Allows you to put text flush right against any tab stop, including
  911.      tab stop 0.  However, it can't move text to the right of the last
  912.      column because there's no tab stop there.  The `\`' command moves
  913.      all the text that follows it, up to the `\\' or `\end{tabbing}'
  914.      command that ends the line, to the right margin of the tabbing
  915.      environment.  There must be no `\>' or `\'' command between the
  916.      `\`' and the command that ends the line.
  917. `\kill'
  918.      Sets tab stops without producing text.  Works just like  `\\'
  919.      except that it throws away the current line instead of producing
  920.      output for it.  The effect of any `\=', `\+' or `\-' commands in
  921.      that line remain in effect.
  922. `\pushtabs'
  923.      Saves all current tab stop positions. Useful for temporarily
  924.      changing tab stop positions in the middle of a `tabbing'
  925.      environment.
  926. `\poptabs'
  927.      Restores the tab stop positions saved by the last `\pushtabs'.
  928.      In a `tabbing' environment, the commands `\=', `\'' and `\`' do
  929.      not produce accents as normal. Instead, the commands `\a=', `\a''
  930.      and `\a`' are used.
  931.    This example typesets a Pascal function in a traditional format:
  932.              \begin{tabbing}
  933.              function \= fact(n : integer) : integer;\\
  934.                       \> begin \= \+ \\
  935.                             \> if \= n $>$ 1 then \+ \\
  936.                                      fact := n * fact(n-1) \- \\
  937.                                else \+ \\
  938.                                      fact := 1; \-\- \\
  939.                          end;\\
  940.              \end{tabbing}
  941. File: latex.info,  Node: table,  Next: tabular,  Prev: tabbing,  Up: Environments
  942. table
  943. -----
  944.       \begin{table}[placement]
  945.      
  946.        body of the table
  947.      
  948.       \caption{table title}
  949.       \end{table}
  950.    Tables  are objects  that  are not part  of the normal  text,  and
  951. are usually  "floated"  to a convenient  place,  like  the top  of a
  952. page.  Tables will not be split between two pages.
  953.    The optional argument `[placement]' determines where LaTeX will try
  954. to place your table.  There are four places where LaTeX can possibly put
  955. a float:
  956.    * `h' : Here - at the position in the text where the table
  957.      environment appears.
  958.    * `t' : Top - at the top of a text page.
  959.    * `b' : Bottom - at the bottom of a text page.
  960.    * `p' : Page of floats - on a separate float page, which is a page
  961.      containing no text, only floats.
  962.    The standard `report' and `article' classes use the default
  963. placement `[tbp]'.
  964.    The body of the table is made up of whatever text, LaTeX commands,
  965. etc., you wish.  The `\caption' command allows you to title your table.
  966. File: latex.info,  Node: tabular,  Next: thebibliography,  Prev: table,  Up: Environments
  967. tabular
  968. -------
  969.       \begin{tabular}[pos]{cols}
  970.       column 1 entry & column 2 entry ... & column n entry \\
  971.       .
  972.       .
  973.       .
  974.       \end{tabular}
  975.    or
  976.       \begin{tabular*}{width}[pos]{cols}
  977.       column 1 entry & column 2 entry ... & column n entry \\
  978.       .
  979.       .
  980.       .
  981.       \end{tabular*}
  982.    These environments produce a box consisting of a sequence of rows of
  983. items, aligned vertically in columns.  The mandatory and optional
  984. arguments consist of:
  985. `width'
  986.      Specifies the width of the `tabular*' environment.  There must be
  987.      rubber space between columns that can stretch to fill out the
  988.      specified width.
  989. `pos'
  990.      Specifies the vertical position; default is alignment on the
  991.      centre of the environment.
  992.         * `t' - align on top row
  993.         * `b' - align on bottom row
  994. `cols'
  995.      Specifies the column formatting.  It consists of a sequence of the
  996.      following specifiers, corresponding to the sequence of columns and
  997.      intercolumn material.
  998.         * `l' - A column of left-aligned items.
  999.         * `r' - A column of right-aligned items.
  1000.         * `c' - A column of centred items.
  1001.         * `|' - A vertical line the full height and depth of the
  1002.           environment.
  1003.         * `@{text}' - This inserts `text' in every row.  An @-expression
  1004.           suppresses the intercolumn space normally inserted between
  1005.           columns; any desired space between the inserted text and the
  1006.           adjacent items must be included in text.  An
  1007.           `\extracolsep{wd}' command in an @-expression causes an extra
  1008.           space of width `wd' to appear to the left of all subsequent
  1009.           columns, until countermanded by another `\extracolsep'
  1010.           command.  Unlike ordinary intercolumn space, this extra space
  1011.           is not suppressed by an @-expression.  An `\extracolsep'
  1012.           command can be used only in an @-expression in the `cols'
  1013.           argument.
  1014.         * `p{wd}' - Produces a column with each item typeset in a
  1015.           parbox of width `wd', as if it were the argument of a
  1016.           `\parbox[t]{wd}' command.  However, a `\\' may not appear in
  1017.           the item, except in the following situations:
  1018.             1. inside an environment like `minipage', `array', or
  1019.                `tabular'.
  1020.             2. inside an explicit `\parbox'.
  1021.             3. in the scope of a `\centering', `\raggedright', or
  1022.                `\raggedleft' declaration.  The latter declarations must
  1023.                appear inside braces or an environment when used in a
  1024.                `p'-column element.
  1025.         * `*{num}{cols}' - Equivalent to `num' copies of `cols', where
  1026.           `num' is any positive integer and `cols' is any list of
  1027.           column-specifiers, which may contain another `*-expression'.
  1028.    These commands can be used inside a `tabular' environment:
  1029. * Menu:
  1030. * \cline::              Draw a horizontal line spanning some columns.
  1031. * \hline::              Draw a horizontal line spanning all columns.
  1032. * \multicolumn::        Make an item spanning several columns.
  1033. * \vline::              Draw a vertical line.
  1034. File: latex.info,  Node: \cline,  Next: \hline,  Up: tabular
  1035. \cline
  1036. ......
  1037.    `\cline{i-j}'
  1038.    The `\cline' command draws horizontal lines across the columns
  1039. specified, beginning in column `i' and ending in column `j', which are
  1040. identified in the mandatory argument.
  1041. File: latex.info,  Node: \hline,  Next: \multicolumn,  Prev: \cline,  Up: tabular
  1042. \hline
  1043. ......
  1044.    The `\hline' command will draw a horizontal line the width of the
  1045. table.  It's most commonly used to draw a line at the top, bottom, and
  1046. between the rows of the table.
  1047. File: latex.info,  Node: \multicolumn,  Next: \vline,  Prev: \hline,  Up: tabular
  1048. \multicolumn
  1049. ............
  1050.    `\multicolumn{cols}{pos}{text}'
  1051.    The `\multicolumn' is used to make an entry that spans several
  1052. columns.  The first mandatory argument, `cols', specifies the number of
  1053. columns to span.  The second mandatory argument, `pos', specifies the
  1054. formatting of the entry; `c' for centred, `l' for flushleft, `r' for
  1055. flushright.  The third mandatory argument, `text', specifies what text
  1056. is to make up the entry.
  1057. File: latex.info,  Node: \vline,  Prev: \multicolumn,  Up: tabular
  1058. \vline
  1059. ......
  1060.    The `\vline' command will draw a vertical line extending the full
  1061. height and depth of its row.  An `\hfill' command can be used to move
  1062. the line to the edge of the column.  It can also be used in an
  1063. @-expression.
  1064. File: latex.info,  Node: thebibliography,  Next: theorem,  Prev: tabular,  Up: Environments
  1065. thebibliography
  1066. ---------------
  1067.       \begin{thebibliography}{widest-label}
  1068.       \bibitem[label]{cite_key}
  1069.       .
  1070.       .
  1071.       .
  1072.       \end{thebibliography}
  1073.    The `thebibliography' environment produces a bibliography or
  1074. reference list.  In the `article' class, this reference list is
  1075. labelled "References"; in the `report' class, it is labelled
  1076. "Bibliography".
  1077.    * `widest-label': Text that, when printed, is approximately as wide
  1078.      as the widest item label produces by the `\bibitem' commands.
  1079. * Menu:
  1080. * \bibitem::            Specify a bibliography item.
  1081. * \cite::               Refer to a bibliography item.
  1082. * \nocite::             Include an item in the bibliography.
  1083. * Using BibTeX::        Automatic generation of bibliographies.
  1084. File: latex.info,  Node: \bibitem,  Next: \cite,  Up: thebibliography
  1085. \bibitem
  1086. ........
  1087.    `\bibitem[label]{cite_key}'
  1088.    The `\bibitem' command generates an entry labelled by `label'.  If
  1089. the `label' argument is missing, a number is generated as the `label',
  1090. using the `enumi' counter.  The `cite_key' is any sequence of letters,
  1091. numbers, and punctuation symbols not containing a comma.  This command
  1092. writes an entry on the `.aux' file containing `cite_key' and the item's
  1093. `label'.  When this `.aux' file is read by the `\begin{document}'
  1094. command, the item's `label' is associated with `cite_key', causing the
  1095. reference to `cite_key' by a `\cite' command to produce the associated
  1096. `label'.
  1097. File: latex.info,  Node: \cite,  Next: \nocite,  Prev: \bibitem,  Up: thebibliography
  1098. \cite
  1099. .....
  1100.    `\cite[text]{key_list}'
  1101.    The `key_list' argument is a list of citation keys.  This command
  1102. generates an in-text citation to the references associated with the keys
  1103. in `key_list' by entries on the `.aux' file read by the
  1104. `\begin{document}' command.
  1105.    The optional `text' argument will appear after the citation, i.e.
  1106. `\cite[p. 2]{knuth}' might produce `[Knuth, p. 2]'.
  1107. File: latex.info,  Node: \nocite,  Next: Using BibTeX,  Prev: \cite,  Up: thebibliography
  1108. \nocite
  1109. .......
  1110.    `\nocite{key_list}'
  1111.    The `\nocite' command produces no text, but writes `key_list', which
  1112. is a list of one or more citation keys, on the `.aux' file.
  1113.